Making sure we only have to pass revision number - some refactoring - removed patching of __builtin__.open