Update compass.py

fix "global name is not defined" error in AndroidCompass.__init__()