pynucastro: an interface to nuclear reaction rates and code generator for reaction network equations