Green’s Dictionary of Slang

pyjama python n.

also pant python

the penis.

[Aus]B. Humphries Barry McKenzie [comic strip] in Complete Barry McKenzie (1988) 94: She’ll let you sting her between the toes with the old pyjama python.
[UK]Guardian 17 Aug. 8/4: Beware of limitations and don’t lock your bedroom door, / When me pyjama python bites you, you’ll come screaming back for more.
[Aus]B. Humphries Traveller’s Tool 41: An awe-struck little Girl Friday cops an eyeful of the Old Patterson pyjama python.
[US]J. Ellroy ‘Jungletown Jihad’ in Destination: Morgue! (2004) 344: I held Donna’s hands [...] My pant python perked up.
[Aus]N. Cummins Adventures of the Honey Badger [ebook] VITAL AUSSIE VERNACULAR Penis: 1. beef bayonet 2. a major part of his tackle allowance 3. sword 4. pyjama python 5. rod 6. middle leg 7. rodger.