Try to guess which module an object was defined in. Return None if the module cannot be determined.
inspect.getmodule(object)