Remove obsolete code

@rkern Can you quickly confirm we are not using this code anywhere (i.e. do we need to care about it for porting enstaller to py3 ?)