Added `type_input()` and `type_output()` to get the Python type of any Python-compatible object.