Don't check for equality with None

Also, adding a more comprehensive gitignore.