def center_end(r, window_size):
res = copy.copy(r)<EOL>res.start = res.end - window_size / <NUM_LIT:2><EOL>res.end = res.start + window_size<EOL>return res<EOL>
Center a region on its end and expand it to window_size bases.

:return: the new region.