Initial python3 support, thorough testing pending