I have a module parser.py in local directory with
class Parser(object): . . . . . . . . class Parser2(object): . . . . . . . .
check your sys.path. if /usr/lib/pythonX/lib-dynload is before '' you will be importing the official parser module from the standard library instead of your module.
/usr/lib/pythonX/lib-dynload
''