Right bytes conversion in python3