Moved some code inside the classes. Added a little test to work without pyparted (just for testing the installer without pyparted)