Why is the rstrip here?  I wouldn't have thought you would need it.