Py3 support

Added initial Py3 support