<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def months_per_hour(self):
 """A list of tuples representing months per hour in this analysis period."""

        month_hour = []
        hour_range = xrange(self.st_hour, self.end_hour + 1)
        for month in self.months_int:
            month_hour.extend([(month, hr) for hr in hour_range])
        return month_hour