Code:
import urllib2 as u import os as o inn = \'dword.txt\' w = open(inn) z = w.readline() b = w.readline() c = w.readline() x = w.readline
This is the problem:
global str str = str(mar)
You are redefining what str() means. str is the built-in Python name of the string type, and you don't want to change it.
str()
str
Use a different name for the local variable, and remove the global statement.
global