Python Function With Input Parameters In Javascript