<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_congress(congress, dest):
 """ Takes a congress object with legislation, sponser, cosponsor, commities and subjects attributes and saves each item to it's own csv file. """

    try:
        logger.debug(congress.name)
        logger.debug(dest)
        congress_dir = make_congress_dir(congress.name, dest)
        congress.legislation.to_csv("{0}/legislation.csv".format(congress_dir),
                                    encoding='utf-8')
        logger.debug(congress_dir)
        congress.sponsors.to_csv("{0}/sponsor_map.csv".format(congress_dir),
                                 encoding='utf-8')
        congress.cosponsors.to_csv(
            "{0}/cosponsor_map.csv".format(congress_dir),
            encoding='utf-8')
        congress.events.to_csv("{0}/events.csv".format(congress_dir),
                               encoding='utf-8')
        congress.committees.to_csv(
            "{0}/committees_map.csv".format(congress_dir),
            encoding='utf-8')
        congress.subjects.to_csv("{0}/subjects_map.csv".format(congress_dir),
                                 encoding='utf-8')
        congress.votes.to_csv("{0}/votes.csv".format(congress_dir),
                              encoding='utf-8')
        congress.votes_people.to_csv(
            "{0}/votes_people.csv".format(congress_dir),
            encoding='utf-8')
        if hasattr(congress, 'amendments'):
            congress.amendments.to_csv(
                "{0}/amendments.csv".format(congress_dir),
                encoding='utf-8')
    except Exception:
        logger.error("############################################shoot me")
        exc_type, exc_obj, exc_tb = sys.exc_info()
        fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
        logger.error(exc_type, fname, exc_tb.tb_lineno)