Python source code restructure.