fixed two annoying typos

methods.py has two typos that causes trouble, one missing colon on line 77, and a missing self argument on line 87. This patch fixes both.