new long coversion (legacy)
python 3 inclusion