Finishing python impl with creational singleton