Ruby Convert Object To String Python Functions With Arguments