fix _from_module is broken in py 2.5