rebuild py hmf