code: def home_flagged_axes(self, axes_string):
          '''
          Given a list of axes to check, this method will home each axis if
          Smoothieware's internal flag sets it as needing to be homed
          '''
          axes_that_need_to_home = [
              axis
              for axis, already_homed in self.homed_flags.items()
              if (not already_homed) and (axis in axes_string)
          ]
          if axes_that_need_to_home:
              axes_string = ''.join(axes_that_need_to_home)
              self.home(axes_stringf home_flagged_axes(self, axes_string):
          '''
          Given a list of axes to check, this method will home each axis if
          Smoothieware's internal flag sets it as needing to be homed
          '''
          axes_that_need_to_home = [
              axis
              for axis, already_homed in self.homed_flags.items()
              if (not already_homed) and (axis in axes_string)
          ]
          if axes_that_need_to_home:
              axes_string = ''.join(axes_that_need_to_home)
              self.home(axes_string)
docs: Given a list of axes to check, this method will home each axis if
          Smoothieware's internal flag sets it as needing to be homed