Add ability to specify location of pid file
python earlier than 3.0 requires indices to be specified with format