Sometimes you need to pass behind the standard gap of 20 unused addresses to show all the addresses with balance on your wallet. When it comes to Electrum, there are 2 similar commands to generate “regular” and “change” addresses (Electrum considers these addresses are different so you need to issue different commands.
So in order to create 200 “regular” receive addresses, use this command:
[wallet.create_new_address(False) for i in range(200)]
If you need to get more change addresses, here is another one:
[wallet.create_new_address(True) for i in range(200)]
Hope it saves you some time and will help to pass the gap.