Add support for Python 2.7 in build process