<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_site_energies( self, energies ):
 """ Set the energies for every site in the lattice according to the site labels. Args: energies (Dict(Str:Float):
 Dictionary of energies for each site label, e.g.:: { 'A' : 1.0, 'B', 0.0 } Returns: None """

        self.site_energies = energies
        for site_label in energies:
            for site in self.sites:
                if site.label == site_label:
                    site.energy = energies[ site_label ]