sequence.py: encapsulate attributate access