Playing with customer analytics in numpy and R