I'm adamantly against software patents, however, when it comes to chemistry patents, I know it's not a rubber stamp process. It can take a couple years to get a patent, and lots of patents are rejected. A lot of the process involves the examiner stripping out claims that are invalid (the parties seeking the patents generally want them to be broader than they really should be).