from collections import namedtuple

Network = namedtuple('Network', [
    'network_name',
    'network_shortname',
    'pubkeyhash',
    'wif_prefix',
    'scripthash',
    'magicbytes'
])

networks = (
    # Peercoin mainnet
    Network("Peercoin", "ppc", b'37', b'b7', b'75', b'e6e8e9e5'),
    # Peercoin testnet
    Network("Peercoin-testnet", "tppc", b'6f', b'ef', b'c4', b'cbf2c0ef')
)

def query(query):
    '''find matching parameter among the networks'''

    for network in networks:
        for field in network:
            if field == query:
                return network

@@ -382,16 +382,198 @@
 2c0ef')%0A
+    # Bitcoin mainnet%0A    Network(%22Bitcoin%22, %22btc%22, b'00', b'80', b'05', b'd9b4bef9'),%0A    # Bitcoin testnet%0A    Network(%22Bitcoin-testnet%22, %22tbtc%22, b'6f', b'ef', b'c4', b'dab5bffa')%0A
 )%0A%0Adef q

Add specifications for Bitcoin mainnet and testnet