Switch as_py to produce a dict instead of a list for a dynd struct