Use requests session to take advantage of connection pooling
Fixed unittest deprecation warnings