Convert Object Into String Python Definition Function