Python version of Twik