Receive TTL via parallel port and wait for the signal

Dear psycho-experts
We are trying to set windows 7 pc to receive fMRI trigger (TTL) via parallel port. Is there any guide how to program psychopy to receive properly the trigger and how to set psychopy protocol to wait for the trigger?
Thank you in advance!