def schedule(self, str):
    self.data = str

def __str__(self):
    if self.data.startswith('d'):
        return 'Daily, %s' % self.data[1:]
if self.data.startswith('m'):
    return 'Monthly, %s of the month' % self.data[1:]
return 'Unknown'
How to generate a human-readable string that represents a rrule object?