[Core] Updated device::setup to handle different types of inputs (strings and python-like arguments)