Learning python by porting my path tracer.