Add python script to get directory information in JSON