Library of Python functions to generate carpet plots