Added function to convert posts to static pages

Currently only checks for existence of the posts
Also organised update.py into functions