the test code is:

and the output is:

In line 101 and 102, hexadecimal values are delivered, but i didn't found that the input must be proc by the lx() function until i cost some time to debug it.
Undet shell, the input bellow runs well:
$ bitcoin-cli.exe -datadir="D:\Program Files\BitcoinData" getrawtransaction 330b926aaced01d1121e4f833c435b8a40a7e1da4df48a3adb55403aa941a264 1
Why not make these functions call just like offical RPCs?
And the value of the key 'blockhash' in the output dict is not well presented, it should looks like "00000000000000001a93726f7f90f9ba1de8c5a569d69f0a33c7b8d7e296f78b"
according to the official RPC.