fix tests with python2
add ssh_agent support