refactor: move write_all_beer_info to writer
tests : PEP8 and add writer test