Merge pull request #4 from lowks/master

Clean up the number of pep8 violations in encoding.py
Merge pull request #6 from lowks/master

re #5 fix #5 Changing the call of os.path.mkdir to os.makedirs
os.makedirs can be called even on directories that exist, so the code in local.py can be simplified
Need to make the try and except more spesific: http://stackoverflow.com/questions/600268/mkdir-p-functionality-in-python