Format Date Object Python Definition Function