add linearbag.py