<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_mod_conditions(self, mod_term):
 """Return a list of ModConditions given a mod term dict."""

        site = mod_term.get('site')
        if site is not None:
            mods = self._parse_site_text(site)
        else:
            mods = [Site(None, None)]

        mcs = []
        for mod in mods:
            mod_res, mod_pos = mod
            mod_type_str = mod_term['type'].lower()
            mod_state = agent_mod_map.get(mod_type_str)
            if mod_state is not None:
                mc = ModCondition(mod_state[0], residue=mod_res,
                                  position=mod_pos, is_modified=mod_state[1])
                mcs.append(mc)
            else:
                logger.warning('Unhandled entity modification type: %s'
                               % mod_type_str)
        return mcs