Fix dynamic import of dotted modules for Python 2.6