I want to import foo-bar.py. This works:
foobar = __import__(\"foo-bar\")
This does not:
from \"foo-bar\" import * <
from \"foo-bar\" import *
If you can't rename the original file, you could also use a symlink:
ln -s foo-bar.py foo_bar.py
Then you can just:
from foo_bar import *