This is not an answer, only an extended comment:
Open up a python interactive interpreter and type
with open(r'C:\Users\Laptopname\Desktop\.temp.py', 'rb') as f:
print(repr(f.read()))
Please post the output. (This will show us exactly what is in the file.)