Python simulation of arm assembly