Update slack.py

Added documentation, made PEP8 compliant, and more configurable, uses requests instead of os.system and curl.