NoneType error in Python Processing

Thank you for your help!