make keyart both python2 and python3 compatible