Make gpolyencode works with Python 3
Make gpolyencode works with Python 3

also cleanup whitespaces and add helper function

angkot/angkot,angkot/angkot,angkot/angkot,shirone/angkot,angkot/angkot,shirone/angkot,shirone/angkot,shirone/angkot