more jython compat fixes (deque maxlen, input prompt flush)
doc