created ionchannel.py class from which channel inherit.