python script to grab chain information from bitcoind