Fix for issue #7 - TypeError: Incorrect padding; https://github.com/heroku/facebook-template-python/issues/7

Modified the line that performs base 64 encoding to work correctly.