Sequences in python - Codanics