fixed bad python syntax