bash plugin fixes

Fixed some python syntax errors and updated architectural methods.