Update qwifi.py to coding standards