Use 4-spaces indent to follow PEP-8;
Move several functions into utils.py to make the code more clear;
Minor fixes.
Add a mark to indicate if a mobi is sent or not, send via email if not, do nothing otherwise.