Simple python devices emulator