A module for calculating color code of resistor in python