Python Syntax Error Unexpected Eof While Parsing Dictionary