Rebased to docker-py/master; refactored tls arg validation