Python script for backing up all postgresql databases on a server, moving them to a remote location, clearing up old files and emailing problems