Make some python3 compat changes to ssh agent support especially for windows