Python Change Array To String Python Definition Function