Hi, it's a very simple answer actually.
You can make sure to import a module with a name which is not valid. Make sure you use imp for this purpose.
Let me give you an example:
Let us say you are assuming the file is called as models.admin.py then you can consider doing this:
import imp
with open('models.admin.py', 'rb') as fp:
models_admin = imp.load_module(
'models_admin', fp, 'models.admin.py',
('.py', 'rb', imp.PY_SOURCE)
)
Also, make sure to glance at the official documentation on the imp.find_module and imp.load_module just before you go about implementing it.
Hope this helped!