def get(self, instance): instance = instance x = int(float(self.get_argument('x'))) y = int(float(self.get_argument('y'))) SESSION.effect_position(instance, x, y) self.set_header('Content-Type', 'application/json') self.write(json.dumps(True))