fixed build.py on python 2.7 (see #100)

See #100 & http://stackoverflow.com/a/10975371/375333.