API: specify Serial Numbers for components

I have done these things and written scripts in Python.
See here: