/usr/bin/pydoc2.7 is in python2.7 2.7.13-2+deb9u3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5
#! /usr/bin/python2.7 import pydoc if __name__ == '__main__': pydoc.cli()