Convert Date Format Python Method Optional Variable Annuity