Python based calendar generator