Define sequence class for interfacing with python faster/cleaner.