Pyramid Problems In Python