<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def important_dates(year=None):
 """Return ImportantDates object that contains MLB important dates"""

    year = datetime.now().year if not year else year
    data = mlbgame.info.important_dates(year)
    return mlbgame.info.ImportantDates(data)