coursera: Remove superfluous comparison with True.
coursera: Remove trailing whitespace.
coursera: Wrap comment.
coursera: Avoid calling glob.glob too many times.
coursera: Use 4-space indenting.

I hope that I didn't modify the semantics of the code while doing so.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>