type, str, dir, and all the rest of Python's built-in functions are grouped into a special module called __builtin__.