How To Specify Type In Python Function