'Creates a folder `[app]/[module]` and adds `__init__.py`'

def create_modules_folder(self):

    module_path = frappe.get_app_path(self.app_name, self.name)
    if (not os.path.exists(module_path)):
        os.mkdir(module_path)
        with open(os.path.join(module_path, u'__init__.py'), u'w') as f:
            f.write(u'')
