path,file=os.path.split(file_url) dir, suffix = os.path.splitext(infile)
if full.endswith(".py"): print("is py")