bags in madx.py and accelerator.py fixed