Added MIT license. A little PEP8 cleanup.