file handling done. Replaced None by shunya