Deprecated import_function* and import_variable* methods and updated the docs and tests