python (optimizing) bubble sort
Also a beginner but one thing I would like to point out is naming function, Style Guide for Python Code states:


  Function Names
  Function names should be lowercase, with words separated by underscores as necessary to improve readability.
  
  mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.


So, in your case write bubble_sort instead of bubbleSort.