Python Make Class Function Example On Graph