Pure python implementation of InChiKey generation algorithm based on the original C code