Hi menion,
to me it seems that this problem is not python specific. But rather a design flaw in the AndroidFacadeAPI. All the script calls are encoded using JSON, which is meant to handle unicode data. Therefore there is no way in python to create 'invalid' utf8 to transport raw 8-bit data. To only solution I can imagine is reimplement the the whole AndroidFaceAPI call in order to bypass the default python JSON encoding for the locus specific data structure.
to me it seems that this problem is not python specific. But rather a design flaw in the AndroidFacadeAPI. All the script calls are encoded using JSON, which is meant to handle unicode data. Therefore there is no way in python to create 'invalid' utf8 to transport raw 8-bit data. To only solution I can imagine is reimplement the the whole AndroidFaceAPI call in order to bypass the default python JSON encoding for the locus specific data structure.