marcgibbons/django-rest-swagger — pull request #68 by bbenko (2014-03-04 17:02:21+00:00)
Title: Fixes #63 missing starting letters from base path in resourses.

I have also stumbled upon this and did not see that someone already made pull request that fixes this.
So, here's my solution for lstrip replacement.
It starts searching from left side. It does not replace every occurrence of the base path. I've also written a test.