moved markdown.py to lib directory