How does python differentiate a class attribute, instance attribute, and method when the names are the same?
class Exam(object): test = \"class var\"
You can call method as class method and pass your instance into it:
Exam.test(test_o)
Or, if you don't want use Exam:
Exam
type(test_o).test(test_o)