WTC - Python code