Fixes for pull request #901 review comments.

https://github.com/pulp/pulp/pull/901