structure from motion python example