python 3.3.x bugfixes in local imports, clean, tests