Fix remaining bytes/string issues with hmac.
Do not rely on isinstance/basestring tests.
Fixed remaining quoting problems in generated urls.
Use more xrange.
Fixed more byte issues in hmac.