Update mandiantSamples.py

Added logging, split into functions.