add python3 support

merge PR #38 also