How to divide a string every n elements in python ?