Python Dynamic Create Function In Matlab