Syntax Error While Parsing Array In Python