Added a python version

Added a python version of computing frame displacement motion parameters from frame relative motion parameters.