Also, you can use jdatetime
library like the following:
import jdatetime
gregorian_date = jdatetime.date(1396,2,30).togregorian()
jalili_date = jdatetime.date.fromgregorian(day=19,month=5,year=2017)
See other functions in details in this document.