(bugfix) bugfixes, script synchronized with compat

- import re fom python library
- fix for language codes
- use Page.text instead of get()/put()
- bugfix for isRedirectPage exception
- continue outer loop if inner loop was completed i.e. nothing found
- indentation for always hotkey
- simplify inputChoice()

Change-Id: I710cc965a196799c5fe21980b08014416ebc4dd6