Fixes three minor issues in the python meterpreter.
Land #2310, Minor Python Meterpreter Issues

- Windows file mode (removes duplicated b)
- Socket timeout value increased
- SetSID for nix systems

[Closes #2310]