fixes python3 support