Code base is to be refactored to follow a directory structure and also use proper naming conventions for variable. It should also follow PEP8 for better readability.