fixed python issue with sending int instead of string for setting max listeners