Remove `new` module usage

Module `new` was removed in python 3 so we should
remove it's usage due to py3 compability