Sequence Function In Python With Parameters