Use setuputils instead of distutils
Sum of absolute differences in Python