bootstrap: add a method to poll android event in a python loop.