ac4815c0d0
* Changed the python api to support device. * Finished implementation and updated tests. * Fix typo.
* Changed the python api to support device. * Finished implementation and updated tests. * Fix typo.