Pre Processing Data In Python