Replacing tab indents with 4 spaces.

This is done on the recommendation of PEP8.
Changing code style to be PEP8 compliant.

Several if blocks have been left as is. This is because they are going
to be refactored soon and will be made PEP8 compliant then.
Removing unneeded booleans.

The inner most for loop was refactored to use continue statements
instead of setting booleans and checking them at the end.
Adding vim modeline comment.
Changing output format.

It now includes a timestamp at the beginning of each line.
Now using now instead of utcnow for timestamps.