Check out example codes for "python class typeerror module() takes at most 2 arguments (3 given)". It will help you in understanding the concepts better.

Code Example 1

this error is often due to the fact that the classes are at the same time modules

let's create a file (module) containing a class A and the same for B.
If B extend from A then to import class A into B we do:
from A_module import A_className

in our example:

the python code will be:
import A from A
class B(A):

Learn ReactJs, React Native from