You reported this error:
TypeError: unbound method get_pos() must be called with app instance as first argument (got nothing instead)
What this means in layman’s terms is you’re doing something like this:
class app(object):
def get_pos(self):
...
...
app.get_pos()
What you need to do instead is something like this:
the_app = app() # create instance of class 'app'
the_app.get_pos() # call get_pos on the instance
It’s hard to get any more specific than this because you didn’t show us the actual code that is causing the errors.