Python translation of Matlab functions hosted in <http://www.santafe.edu/~aaronc/powerlaws/>