Hardening/accumulator pid in file

Optimizations on accumulator-server.py