A python program to calculate molar mass