Simple tools to work with the Initial Mass Function