JNI code to request sensor data from within a spawned python process