Nameerror Name W Is Not Defined