Summary Function In Python Definition