Do a small fix for Python 3 with the pidfile chmod