memory_usage accepts Popen as argument

The "proc" argument of memory_usage() can now be a subprocess.Popen
object.
Added mem_profile executable

mem_profile allows both launching and monitoring a process.