153:30: E713 test for membership should be 'not in'
658:5: E303 too many blank lines (2)
767:30: E127 continuation line over-indented for visual indent
872:37: E128 continuation line under-indented for visual indent
881:42: E127 continuation line over-indented for visual indent
1005:54: E127 continuation line over-indented for visual indent