A simple rainbow table generator in Python