Convert apploadbalancer to python

This is ready to be merged in.