compat with >= python3.3