upgraded wakatime.py