This is a starter for using POX and mininet
Build your topology and run via pox/pox/ext/build_topology.py
As a start, you should look at modifying jelly_controller.py and build_topology.py. Right now jelly_controller.py floods everything.
You should check out the links: https://github.com/mininet/openflow-tutorial/wiki/Create-a-Learning-Switch#Controller_Choice_POX_Python as well as the examples in the pox/forwarding folder