Trying to fix issue with different versions on Python - not finished yet

Some don't have the right assertRaiseRegexp.
Others have exceptions with a different message
Others have exception with a different type