python create json file in directory