A Python library for generating light curves of transiting planets