Allow modules attributes to be resolved as constants in nopython mode