added python3 support #22