moving imports to top of module

based on email threads showing excessive GIL lock time and deadlocks
when doing extensive imports not at module load time
Merge pull request #105 from heckj/importchange

moving imports to top of module to avoid import lock errors (maybe due to threading?)