I have a module parser.py in local directory with
class Parser(object):
. . . .
. . . .
class Parser2(object):
. . . .
. . . .
Parser is already a Python module. Rename your module (for example from "parser.py" to "myParseModule.py") and you shouldn't have a problem.
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.