Re-enable docker-py related code.

Fixes #789.