added python3 support (for reals this time)