Add a --profile argument

Runs the Python profiler on each mapper and reducer worker process, leaving the raw profiler output in the working directory in files named profile_{mapper|reducer}_n; the resulting profiles can be viewed using 'python -m pstats profile_mapper_0'