quick&dirty in py for 014. takes 3s