fix base path on support python3