[master 3/11] Remove python2 assert regex method name hacks.