fix for parsing errors (python <= 2.7.2)