Narrowing the concern should help others respond to the question concisely. You may edit the problem if you are feeling you are able to boost it oneself. If edited, the dilemma might be reviewed and could be reopened.If you are on Python two, you may backport the pathlib module from pypi, pathlib2, or otherwise Verify isfile from your os.route modu