Port the Perl module's deparse() to Python