use set -e in shell scripts
scan_wlan.py is now a proper script with command line options, mode switching, gps data