Sequential Function In Python Definition