Python Error Syntax Error Return Outside Of Function