Python, as many other languages, uses the backslash as an escape character (the double-quotes at the end of your xp1=... line are therefore considered as part of the string, not as the delimiter of the string).
This is actually pretty basic stuff, so I strongly recommend you read the python tutorial before going any further.
You might be interested in raw strings, which do not escape backslashes. Just add r just before the string:
xp1 = r"\Documents and Settings\"
Moreover, when manipulating file paths, you should use the os.path module, which will use "/" or "\" depending on the O.S. on which the program is run. For example:
import os.path
xp1 = os.path.join("data","cities","geo.txt")
will produce "data/cities/geo.txt" on Linux and "data\cities\geo.txt" on Windows.