Changelog:
===========
Auto-coerce pathlib.Path objects to str since it is the least astonishing behavior
Reduce strictness of type hints to avoid over-constraining client code
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>