code: def id_to_object(self, line):
          
          user = User.get(line, ignore=404)
          if not user:
              user = User(username=line)
              user.save()
          return user
docs: Resolves the given id to a user object, if it doesn't exists it will be created.