How to Query Blockchain Data using Python