Support passing classes to asrootpy