Changed encoding to utf-8
Add universal_newlines=True to Linux subprocesscall