fix reload for python3