There are two kinds of pipes:
Anonymous pipes exist only within a process and are typically used in correspondence with forks.
Pipes are used to pass messages from one program to the other.
A message consistes of a sequence of bytes.
This can be serialized data.
Data can be easily serialized by the pickle module.