code: def get_previous_month(self):
          
          end = utils.get_month_start() - relativedelta(days=1)
          end = utils.to_datetime(end)
          start = utils.get_month_start(end)
          return start, end
docs: Returns date range for the previous full month.