Python Error Syntax Error Return Outside Function