Add not_() to python driver

Pull request reviewed by @atnnn
Closes #1329
Closes #1360