A Python implementation of self-organizing maps and variants