BUG: Fixed order of imports

PYTHONPATH was not initialized in time for importing
python modules.