Python Byte Array Functions Java