Changed Python Syntax to 2.7