whoops, bugfix in io.write
support PyBytes in addition to PyByteArray for conversion to Vector{Uint8}