Fixes python3 support