MNT: Better error messaging for duplicate module imports