make _depaginate less ugly
fix some errors that showed during testing

Signed-off-by: Sietse van der Molen <sietse@vdmolen.eu>
Write tests for thin Python client

Signed-off-by: Sietse van der Molen <sietse@vdmolen.eu>
fix errors that arose during testing

Signed-off-by: Sietse van der Molen <sietse@vdmolen.eu>
Merge pull request #11 from mcash/MVP-1556

Mvp 1556