Simple Pyramid Code In Python