Use .decode(utf-8) instead of str() to convert bytes