def newauthor(post): """"to get the room for book to store""" new_author = Author(authorid=post["authorid"], name=post["name"], age=post["age"], country=post["country"]) return new_author