Improper python syntax fix