updated python for simplicity (UNTESTED)
user friendly version