Fixed dict iterators in python3; next: string decoding