docs: add initial sphinx setup
check_ip: support python2 as well
*.py: make all scripts importable as modules

This is useful for autogenerating documentation.
*.py: run autopep8
check_ssl: cleanup