bubble sort implemented in python