Update wlan.py

Colorful output message.
Fix a bug. This bug can make the program falls into infinite loop.