How can we use HTTP REMOTE_USER in SSO-SWAT with python apps?

Hi,
how can we use HTTP REMOTE_USER in SSO-SWAT with python apps?

Thanx for any hint
Renne