As with any HTTP request to Stardog, you need to pass in user credentials in order to be authorized. You will need to pass in your Stardog user/password however urilib2 performs basic authentication.
You will have to look at the documentation for whatever python library you are using to make the HTTP call, as none of them is developed or maintained by Stardog.