You could always dump the data structure out as YAML in Python and then read it back in with YAML in Perl.