Added python3 compiling support