removed use of assertRaisesRegexp from test_keyfile.py, to fix Python 2.6 build break