Google Jython’s jarray module. That can create objects that are low-level java byte[] datatype.
jarray
byte[]