fixing ValueError: too many values to unpack for key, value in iterable

https://github.com/dotcloud/docker-registry/issues/443