Fix warnings

These warnings were shown during compilation. It is okay to enable the python script now.