I have run into a problem while trying some code I found here on Stack Overflow:
os_name = os_info.Name.encode('utf-8').split('|')[0]
Error:
a bytes-like object is required, not 'str'
I found out that there could be problem that I use Python 3, and not Python 2.