xrange no longer exists in Python 3 and it is caught by the core check
(as an undefined method).
Also remove a few unused regex patterns.
Change-Id: I6b7cb5fc67b84fa95ef7180d7b16e77105c22522
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>