Improved permutations library
Following Python naming convention according Google Styleguide