There was a PEP8 issue with the indentation, so rather than changing the indentation I just made it into a single line as it didn't seem that long. I can change it back to 2-lines with proper indentation.