def is_kzcashd_port_open(kzcashd):
    port_open = False
    try:
        info = kzcashd.rpc_command('getgovernanceinfo')
        port_open = True
    except (socket.error, JSONRPCException) as e:
        print(('%s' % e))
    return port_open
def is_kzcashd_port_open(kzcashd):
    port_open = False
    try:
        info = kzcashd.rpc_command('getgovernanceinfo')
        port_open = True
    except (socket.error, JSONRPCException) as e:
        print(('%s' % e))
    return port_open