Use str.decode, not unicode(), to decode byte strings.