Acessing bitcored through a script SOLVED

Hi there,
I want to check the balance of an address using a script.
But when i use http://localhost:3001/insight/"address"
i’m getting the http error 404??

The node is running fin i a browser, but can’t reach it through a script!

Any ideas???

/insight/* is routed via client-side javascript application, the api is accessible at /insight-api/

Alright, but this turns back the same error. Am I missing something???

urlRequest = urllib2.Request("http://localhost:3001/insight-api/address/" + address)
data = urllib2.urlopen(urlRequest).read()
json_data = json.loads(data)
balances.write("Balance of " + address + " is " + str(json_data["data"]["balance"]) + "\n") 


The bitcored-Termial shows me the GET request of python!,(but with a 404 in that line)

Is it a mistake in the bitcoin.conf file??
Changed nothing in there

THX got the answer!