Update khanex.py

Corrected method signature, which caused an error "render() takes exactly 2 arguments (3 given)".