core: make fork() work on Windows under Python 3

Use the same approach in _fork_win32() that was used in commit ee990fbc
for start_command().

Signed-off-by: Daniel Harding <dharding@living180.net>
Merge pull request #250 from living180/fix_fork_on_windows_py3

Make fork() work on Windows under Python 3