Fixing python comment functions