use pydoc instead of /usr/bin/less
fix variable name
simplify condition
pydoc needs string, not a list
handle binary diff again