Dist

A few fixes for py3, and some maintenance changes here and there (replacing printing warnings with actually raising warnings, using `plt.subplots` instead of an ad-hoc function).