files = [path]
if not os.path.exists(path):
    files = glob('%s.*' % path)
if not files:
    raise IOError('no files found')
for f in files:
    pass
find all files matching exact name with and without an extension