cheat sheet for writing Python 2-3 compatible code