Try and fix mortgage for py3.