<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_parallel_port_change(self, parallel_port):
 """Triggered when settings of a parallel port of the associated virtual machine have changed. in parallel_port of type :class:`IParallelPort` raises :class:`VBoxErrorInvalidVmState` Session state prevents operation. raises :class:`VBoxErrorInvalidObjectState` Session type prevents operation. """

        if not isinstance(parallel_port, IParallelPort):
            raise TypeError("parallel_port can only be an instance of type IParallelPort")
        self._call("onParallelPortChange",
                     in_p=[parallel_port])