mark the lines that are python version dependent as # pragma: no cover as well as the no sandbox