logpy uses _as/from_tuple methods