Added argparse, tmpfile for improved cluster/Galaxy compatibility