Raising exceptions when trying to use old style imports