Update __init__.py
Code modified to work with python 3.x, 2.x no longer supported