Avoid polluting device dirs with python bytecode

see https://github.com/CyanogenMod/hudson/commit/b20159a8ada2b567782406002c1dd8f5f321939a