Update malsharedigest.py

Updated storage of outfile