Okay, this is bad idea in most cases. I see that you don't import anything in exceptions.py but if anyone does in future, it would pollute the namespace in this module. You should import explicitly. Use the tuple notation if the line gets longer.