added log and python analyse script