I\'m not very experienced programming in Python but I\'ve also seen in several posts that this problem might be solved by adding self to the method definition.
self