Switched from using Python is to ==