Error with __init__ 'module' object is not callable
You didn't paste your import, but I'm betting you used
import test
where your file is called test.py
(which should probably be more descriptive, BTW) which imports the module, which is why it's objecting that test is a module object and isn't callable. You can access your class by calling
x = test.test(10, "A type")
or alternatively you could use
from test import test
after which
x = test(10, "A type")
should work.