Create Binary String In Python Function Definition