Build python modules only when MODULE is defined