[rtbf] fix extraction for python 3.2 and older