Know what version of Python you're using. There are differences. For instance, when dealing with strings:
Python 3: bytes contains sequences of 8-bit values, str -> seqs of Unicode chars
Python 2: str contains sequences of 8-bit values, unicode -> seqs Unicode chars
Python 3: bytes contains sequences of 8-bit values, str -> seqs of Unicode chars
Python 2: str contains sequences of 8-bit values, unicode -> seqs Unicode chars