removed unnecessary argument
some compatibilities with python 3
removed unnecessary translating to bytes