Python clone of LMAX CoalescingRingBuffer