p-winds: An open-source Python code to model planetary outflows and upper atmospheres