Zipping folders and attaching them to the post sessions

tarring non-empty folder only
move all the stuffs to python script