Removed some outdated code from devices in python binding