Apparently pygments has some concurrency problems - made a VM wide lock to work around this