Minimal upgrade to python 2.7