index and reorganize python code