executable in python3

dirty modification to allow execution in python3 as well.