changed 'this' for the more python-y 'self'