Update pebble.py to fix autodetection

Save id in variable, not just object property