added fragments of the seq_pipeline.py (will be moved to another repo)