Python Function Define Input Offset