Parametric mounting plates with holes and recesses

I made this script to create parts (plates) often bought in hardware stores to connect wood and metal.