Fixed problems with different python 2.7 versions.