python3 compatibility -- not fully tested (ie, run with Phoenix