Support passing Nums from Perl to Python