sessionrest: increment children_count on copied inputs
sessionrest: flake8