how to call a class method in python from a function code example Example: cls in python import os clear = lambda: os.system('cls')