This line will never be executed.  Have you run pylint on this code?