First, you need to remove the quotes around "file"
:
paths = open(file,"r+")
When you're calling something using the value of a variable, you shouldn't quote the variable.
Second, if you don't want to hard code the path to file
, you'll need to ask the user for it:
file = raw_input("Please enter the full path to the file: ")