Update docstring
Style fixes

No spaces around =
Use "is" or "is not" when comparing objects, not ==, !=
Use double quotes for strings instead of single quotes
Don't use outer () brackets for if-statements