Look for the correct key in the config file. Removed unnecessary imports. Changet bound method