BF: Resolve Deprecation Warnings for python3

Mainly python imp -> importlib for python3.3+, and other minor tweaks