Hello krish,
Seth here. I am glad things worked out. Did you have to revert back to 1.0.3 for the Adafruit_BBIO library?
Or…
Did you use the new software which is on Github.com, i.e. for both Adafruit_BBIO and the MotorBridge.py file at github.com?
Seth
P.S. If you get bored and if you are likely to share, I would like to know more about your project. Reply if you feel comfortable.