Fixed keystream error in python2.6, closes #399