Class String Python Definition Function