In Python, how to convert a bytes to bytearray?