Move ldap creation to lib
Ldap list branches
Move patches to patches.py