python 3 compatibility code refactored, bump version to 0.0.10