example use of accelerometer in Android for apps written in Python with Pygame and pgs4a