Made python version of sequence example.