fix source to run with python3