added some pythin code for reading files