Make captcha python scripts python3 compatible
Remove trailing whitespace
Bug: T157888 Change-Id: I8b2da97c40f8748a1aad5509dddff638a7f3f945