Prepare chunks that are applicable to both Python 2 and 3.