Reenabled all shader options on lightmapgeneric and vertexlitgeneric for deferred mode, fixing rendering problems. Also improved the autocreation of global deferred light based on light_environment.
Added ENABLE_PYTHON around python code in locomotion.