from __future__ import unicode_literals
import os

bind = "127.0.0.1:%(gunicorn_port)s"
workers = (os.sysconf("SC_NPROCESSORS_ONLN") * 2) + 1
loglevel = "error"
proc_name = "%(proj_name)s"

@@ -40,18 +40,31 @@
 %0Aimport 
-os
+multiprocessing
 %0A%0Abind =
@@ -108,47 +108,39 @@
 s = 
-(os.sysconf(%22SC_NPROCESSORS_ONLN%22
+multiprocessing.cpu_count(
 ) * 2
-)
  + 1

Update to use multiprocessing library