Make setup faster on python3.4,  and add some error handing