Fixed build process to work with Python 2.7