filename is basically your reference to the file and where it is stored. Using the following command
fullfilename = os.path.join(myPath, filename)
urllib.urlretrieve(url, fullfilename)
You should be able to store it at myPath.
Don't forget to place
import os
at the top of your script..