Fix bug in parser for Python classes.