A python implementation of consistent overhead byte stuffing