File "/usr/lib/python2.6/multiprocessing/synchronize.py", line 49, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 38] Function not implemented
Turned out that we need to enable the SHM on the box. To do that, find the file /etc/fstab, add a new line
none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
Restart the box and the SHM should be enabled now.