TDL knockoff written in python