Porting a small wifi connection bash script to python in the interest of learning by doing.