Fixed get_success_url.
Flake8 cleanup