ba.py first version