def get_rpc_connection():
    from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
    connection = ('http://%s:%s@127.0.0.1:%s' % (rpc_user, rpc_pass, rpc_port))
    rpc_connection = AuthServiceProxy(connection)
    return rpc_connection
def get_rpc_connection():
    from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
    connection = ('http://%s:%s@127.0.0.1:%s' % (rpc_user, rpc_pass, rpc_port))
    rpc_connection = AuthServiceProxy(connection)
    return rpc_connection