Reorganizing imports in qpid.py