"""Reimplements Debian's run-parts --list.
One difference from run-parts's behavior: run-parts --list /foo/
- will give output like /foo//bar, because Python code tends to expect this.
+ will give output like /foo//bar, but run_parts_list('/foo/') gives
+ /foo/bar in deference to Python conventions.
Matches documented behavior of run-parts in debianutils v2.28.2, dated 2007.
"""