Proper fix of PY-9356

Use <modulename>$py.class instead of <modulename>.$py.class