Rules for writing Robust Stand Alone Scripts