this products exposed a module with two functions to Python Scripts in order to be able to compare two types.
extract the archive in your Products/ folder.
Example:
from Products.TypeCheck.typecheck import compare_types,typename return compare_types('string',3)
so it will compare whether both objects have the same type and return true or false accordingly. (something like type(a)==type(b))