def create_member_handler(): api = CobotAPI() print api.create_membership('new name', 'some country')['id']