I am using python and I follow this example: http://wiki.exist-db.org/space/Howtos/accessing+eXist+from+Python

I have constructed an xUpdate string like in the example, however whenever I call the xupdate_file method, I get an error from eXist saying that the function xupdateResource(string, string) does not exist. I thought that this might be because the function signature in java is (string, byte[]), so I used the http_request method from the example instead. Using that one, I got a bad request error (400). I have checked my xupdate string using print, and it seems to be fine. Is there something I am missing?