This should make it work with Python2.7+