python: Fix #19300 MAXREPEAT issue with system vim

Related:
http://bugs.python.org/issue18050