Python solutions for the Math section of Mega Project List