python 3 compatability and changed maybeLift lines to actually work