porting the var_dump from php to python