Cleanup PEP issues

Start work on notification function