Completes isSubsetOf in python