TypeError: Argument 3 does not allow None as a value