agreed. you might say i was trying to translate his C code "word for word", rather than properly "pythonizing" the entire chunk of code as a whole.