Add the proper python directory for tests, continue the subdirs->add_subdirectory migration and reorgnaize slightly the code.