Just a wee bit of forethought may be in order. Both the .yaml and the .py file may contain dependencies.
The .py file may contain import statements. You’ll want to make sure that these are satisfied in the new location. That is, if the corresponding files are not already there, then you’ll want to copy them.
Likewise, the .yaml file may use other Forms as components. If it does, then you’ll need to make sure that they’re satisfied, too, in the same manner.
If you do end up copying any files, also check them for dependencies, in the same manner.