add python directory and iter in python