should be:

    class Mixpanel(object):

to be a "new-style" python class