resolve syntax issues that pycharm was complaining about

- comma at end of (parameter/argument) list
- unterminated statement