Fixes version check for docker-py
Merge pull request #560 from weitzj/bugfix/dockerpy-versioncheck

Fixes version check for docker-py
Fixes invalid dictionary access.