httpcore.py/pageranges.py: don't shadow builtin names for variables

Since DWiki was initially written, 'bytes' and 'next' have both become
Python builtin names (the latter is somewhat unfortunate but meh).
Change variable names to avoid them.