Improve Python 3 compatibility (first experience with bytes vs strings)