Python tools for investigation of sum-product and Niven numbers