Add #include guards for HAS_PYTHON

This fixes compile of Addon.cpp and Weather.cpp if HAS_PYTHON is not defined