just FYI, in Openstack we use assert(X is not None) instead of assert(not X is None) (just more readable)