Fixed some PEP8 issues and also added log hint for subbed in return values.
Fixed get_pgroup so it actually works as documented.
Added missing imports and improved docs.
Changed win_file.is_link so it has the same behaviour as islink on *nix.