Fixed empty pidfile issue with python 3.

Fixed empty pidfile issue with python 3. Also removes empty or broken pidfiles upon starting.
Can you change this to `'Empty or broken pidfile {pidfile}; removing'` (i.e. single quotes, semicolon instead of hyphen, and no period at the end)?