python and functions now play nice