DT-162 ensure signing compatibility with python 2 and 3