CLN: Remove miscellaneous rarely used items from pandas.compat
- [X] xref #25725
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

Gets rid of the following from `pandas.compat`:

- `intern`
- `reduce`
- `unichr`
- `wraps`
- `get_range_parameters`
- `class_types`
- `reload`
  - also removed `set_defaultencoding` as it used `reload`, was never used, and is PY2 specific
- `import_lzma`
  - also removed `skip_if_no_lzma` since `lzma` is in the standard library for PY3
