Update bidmas.py

corrected