Inspired by dinox/vanitygen-py