Clean the code - remove stuff from __init__.py
__init__.py
exists only to create package structure. It should contain only symbols that are going to be exported and used elsewhere. It should definitely not contain the type of code it does now. This type of code should be contained in some kind of utility modules.
Reference discussion.