Expanding on Tim's question, when using
classes, you have the class definition, a type,
and then an instance of the class, the object.
createMember should be called as a method of
an instance, not of the class itself
(there is a type for that - a staticmethod or
classmethod, and they do not have a "self").
So you need to create the instance:
m = Member()
Note - you will need the parameters to do that.
If you want it to not need the parameters, that
requires a bit more code.
Then access that method in it:
You could also call it inside _init__ (known as
the constructor), where "self" is the