Update karma.py