Implemented bubble sort on python