+python3 support with less side effect