Update gapslib.py

Sorry is my first python modify

edit gaplib.py for my issue #4 "Gaps with Samba 4.1.3"
it also solves my issue #3

sorry for my bad english, i'm french.