added Python's logging framework to log errors to events.log. Changed logic flow of sync_gps.py a bit.