simple converter with 2to3 for compat with python3