newrelic_deployment bug fix to support both python 2.4 and 2.6

Here's a bug fix to the newrelic_deployment module so that it will work properly under both python 2.4 and 2.6.  Since urlopen behaves differently under the two versions of python the handling of return codes has to be handled slightly differently.