Replaced Python 2 compatible type hints by PEP 484 type hints. Revised...

Replaced Python 2 compatible type hints by PEP 484 type hints. Revised docstrings. Fixed a lot of Sphinx build warnings. Some code style improvements.

Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de>
3 jobs for enhancement/drop_py27 in 3 minutes and 44 seconds (queued for 1 second)