Update module.py

Added a function index (optional) for modules giving you the option to import functions rather than whole modules.