python menu fixes