Rosenblatt transformation with Python