Connecting to domain registry EPP server
===

I'm getting my sea legs and need some pointers and a small sample of code that connects to an epp server. The sample of code need to login and send one command and receive a response.(in XML). 
Code can be in php or python. 

This I believe will form a basis/kickstart for me to delve in further and learn more about this topic. It's driving me up the wall - in a good way as I want to solve it in one day or a thousand.

And I have been searching for days now but can't seem to make sense of the info found, and 
now opted to ask here for guidance.

Thank you in advance.