I guess if you place your xxx.py file in the working directory it will work.
import os
os.getcwd()
Otherwise change the working directory to the directory where your file is placed.
os.chdir('C:\xxx')
import os
os.getcwd()
Otherwise change the working directory to the directory where your file is placed.
os.chdir('C:\xxx')