py: Make bytearray a proper type.