Code style improvement
Packed main code into methods
Moved globals to attribute functions
Added exception  which is raised instead of calling  from inside the class.
Added some docstrings.
Replaced has_key with .
fixes typo
certificate as attribute
test case
Merge branch 'check_passwords' of https://github.com/c0ff3m4kr/OpenWireless into check_passwords