A python implementation of radix sort