parts[0:1] == parts[0]
also I believe that os.path.join will do this for you