added tests for bad unicode
changed error, and fetch_reposts_api logic
made imports compatible with Django 1.6