made build script python2 compatible